#ifndef __IR_H
#define __IR_H
#include  "stdint.h"


//定义键位编码
//用于红外遥控风扇课设
#define NUM_1 		16753245
#define NUM_2 		16736925
#define NUM_3 		16769565
#define NUM_4 		16720605
#define NUM_5 		16712445
#define NUM_6 		16761405
#define NUM_7 		16769055
#define NUM_8 		16754775
#define NUM_9 		16748655
#define NUM_0 		16750695
#define SIGN_Star	16738455
#define SIGN_Well 	16756815
#define UP 			16718055
#define DOWN 		16730805
#define LEFT		16716015
#define RIGHT 		16734885
#define OK 			16726215
 
extern uint32_t Data;
void IR_Init(void);
uint8_t IR_GetDataFlag(void);
uint8_t IR_GetRepeatFlag(void);
uint16_t IR_GetCounter(void);
 
#endif 